package com.school.gift.service.impl;

import com.school.gift.domain.GoodsImg;
import com.school.gift.mapper.GoodsImgMapper;
import com.school.gift.service.GoodsImgService;
import zhibi.common.support.base.service.BaseServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

/**
* The class create by 执笔 on generate.
*/
@Service
@Transactional
public class GoodsImgServiceImpl extends BaseServiceImpl<GoodsImg> implements GoodsImgService {

    @Autowired
    public GoodsImgServiceImpl(GoodsImgMapper mapper) {
        super(mapper);
        this.goodsImgMapper = mapper;
    }
    private GoodsImgMapper goodsImgMapper;

    @Override
    public List<GoodsImg> selectByGoods(Integer goodsId) {
        GoodsImg goodsImg = new GoodsImg();
        goodsImg.setGoodsId(goodsId);
        return goodsImgMapper.select(goodsImg);
    }
}